package com.tjec.project.system.mapper;

import com.tjec.project.system.domain.BmsAttachmentProjectBusiness;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 附件项目业务关联Mapper接口
 *
 * @author tjec
 * @date 2020-07-19
 */
public interface BmsAttachmentProjectBusinessMapper
{
    /**
     * 查询附件项目业务关联
     *
     * @param attachmentId 附件项目业务关联ID
     * @return 附件项目业务关联
     */
    public List<BmsAttachmentProjectBusiness> selectBmsAttachmentProjectBusinessByGuid(String attachmentId);

    /**
     * 查询附件项目业务关联列表
     *
     * @param bmsAttachmentProjectBusiness 附件项目业务关联
     * @return 附件项目业务关联集合
     */
    public List<BmsAttachmentProjectBusiness> selectBmsAttachmentProjectBusinessList(BmsAttachmentProjectBusiness bmsAttachmentProjectBusiness);

    /**
     * 新增附件项目业务关联
     *
     * @param bmsAttachmentProjectBusiness 附件项目业务关联
     * @return 结果
     */
    public int insertBmsAttachmentProjectBusiness(BmsAttachmentProjectBusiness bmsAttachmentProjectBusiness);

    /**
     * 修改附件项目业务关联
     *
     * @param bmsAttachmentProjectBusiness 附件项目业务关联
     * @return 结果
     */
    public int updateBmsAttachmentProjectBusiness(BmsAttachmentProjectBusiness bmsAttachmentProjectBusiness);

    /**
     * 删除附件项目业务关联
     *
     * @param attachmentId 附件项目业务关联ID
     * @return 结果
     */
    public int deleteBmsAttachmentProjectBusinessByGuid(String attachmentId);

    /**
     * 批量删除附件项目业务关联
     *
     * @param attachmentIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteBmsAttachmentProjectBusinessByGuids(String[] attachmentIds);

    List<String> selectBmsAttachmentProjectBusinessListByProjectId(@Param("list")List<String> projectIdList);
}
